package com.lekang.dto;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lekang.common.annotation.Excel;

/**
 * 家属绑定DTO（含老人核心信息与微信用户关联）
 * @author ruoyi
 * @date 2025-10-24
 */
public class BindFamilyDto {
    private static final long serialVersionUID = 1L;

    /** 关联的老人ID（与elderly表id对应） */
    @Excel(name = "关联老人ID")
    private Long elderlyId;

    /** 老人姓名（与elderly表name对应，前端传递） */
    @Excel(name = "老人姓名")
    private String elderlyName;

    /** 老人身份证号（与elderly表id_card对应，前端传递） */
    @Excel(name = "老人身份证号")
    private String elderlyIdCard;

    /** 家属与老人关系（如子女、配偶等，前端传递） */
    @Excel(name = "家属与老人关系")
    private String extraField1;

    /** 关联的微信用户ID（与微信用户表主键对应，前端传递） */
    @Excel(name = "关联微信用户ID")
    private Long wxUserId;


    // Getter + Setter
    public Long getElderlyId() {
        return elderlyId;
    }

    public void setElderlyId(Long elderlyId) {
        this.elderlyId = elderlyId;
    }

    public String getElderlyName() {
        return elderlyName;
    }

    public void setElderlyName(String elderlyName) {
        this.elderlyName = elderlyName;
    }

    public String getElderlyIdCard() {
        return elderlyIdCard;
    }

    public void setElderlyIdCard(String elderlyIdCard) {
        this.elderlyIdCard = elderlyIdCard;
    }

    public String getExtraField1() {
        return extraField1;
    }

    public void setExtraField1(String extraField1) {
        this.extraField1 = extraField1;
    }

    public Long getWxUserId() {
        return wxUserId;
    }

    public void setWxUserId(Long wxUserId) {
        this.wxUserId = wxUserId;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("elderlyId", elderlyId)
                .append("elderlyName", elderlyName)
                .append("elderlyIdCard", elderlyIdCard)
                .append("extraField1", extraField1)
                .append("wxUserId", wxUserId)
                .toString();
    }
}